package com.weiyun.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weiyun.shortlink.admin.dao.entity.GroupDao;
import com.weiyun.shortlink.admin.dto.req.ShortLinkGroupSortReqDto;
import com.weiyun.shortlink.admin.dto.req.ShortLinkGroupUpdateDto;
import com.weiyun.shortlink.admin.dto.resp.ShortLinkGroupResponseDto;

import java.util.List;

/***
 *   @Author:weiyun
 *
 */
public interface GroupService extends IService<GroupDao> {

    void save(String groupName);
    void save(String username,String groupName);

    List<ShortLinkGroupResponseDto> listGroup();

    void updateGroup(ShortLinkGroupUpdateDto shortLinkGroupUpdateDto);

    void deleteGroup(String gid);

    void sortGroup(List<ShortLinkGroupSortReqDto> shortLinkGroupSortReqDto);
}
